﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="LdapStreznikiPodrobno.aspx.cs" Inherits="Sio.Mdm.Web.Instalacija.LdapStreznikiPodrobno" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title></title>
    
    <style type="text/css">                
        .cbOrgarnizacija-backgr {
            background: #D1DDEF;
            border-top: 1px dotted #B5B8C8;
            border-bottom: 1px dotted #B5B8C8;              
            padding-top:5px;
            padding-bottom:5px;         
        }
    </style>   
</head>
<body>
    <form id="form1" runat="server">
    <ext:ResourceManager ID="ResourceManager1" runat="server" />
    
    <ext:Store ID="StoreOrgarnizacije" runat="server">
	<Reader>
		<ext:JsonReader IDProperty="OrganizacijaId">
			<Fields>
				<ext:RecordField Name="OrganizacijaId" Type="Int" />
				<ext:RecordField Name="Naziv" Type="String" />
			</Fields>
		</ext:JsonReader>
	</Reader>
    </ext:Store>
    
    <ext:Store ID="StoreLdapTipi" runat="server">
	<Reader>
		<ext:ArrayReader IDProperty="LdapTipID">
			<Fields>
				<ext:RecordField Name="LdapTipID" Type="Int" />
				<ext:RecordField Name="Naziv" Type="String" />
			</Fields>
		</ext:ArrayReader>
	</Reader>
    </ext:Store>
    
    <ext:Viewport ID="Viewport1" runat="server" Layout="Fit">
        <Content>
            <sio:FormPanel runat="server" ID="FormPanel1" MonitorPoll="500" MonitorValid="true" Layout="fit" Border="false">
		    <Items>
            <ext:Panel 
            ID="Panel1" 
            runat="server"             
            HideBorders="true"                        
            PaddingSummary="5px 5px 0"            
            Width="350"
            Frame="true"
            Border="false"
            ButtonAlign="Center"
            Layout="Form">
            <Items>
                
                <ext:ComboBox ID="cmbOrgarnizacije" FieldLabel="Organizacija" EmptyText="Izberi organizacijo..." runat="server" Editable="false" SelectOnFocus="true"
                Width="200" StoreID="StoreOrgarnizacije" DisplayField="Naziv" ValueField="OrganizacijaId" AllowBlank="false" ItemCls="cbOrgarnizacija-backgr">				    					    
			    </ext:ComboBox> 
			    
                <ext:TextField ID="txtIme" runat="server" FieldLabel="Ime" AllowBlank="false" Width="200" />
                <ext:TextField ID="txtOpis" runat="server" FieldLabel="Opis" Width="400" />
                <ext:TextField ID="txtIPNaslov" runat="server" FieldLabel="IP Naslov / Port" AllowBlank="false" Width="150"  />
                
                <ext:ComboBox ID="cmbTip" SelectedIndex="0" FieldLabel="Tip" runat="server" Editable="false" SelectOnFocus="true" 
                Width="150" StoreID="StoreLdapTipi" DisplayField="Naziv" ValueField="LdapTipID">				    		
			    </ext:ComboBox>                
                <ext:Checkbox ID="chkSSLPovezava" FieldLabel="SSL Povezava" runat="server" />
                
                <ext:TextField ID="txtRootDN" runat="server" FieldLabel="Root DN" AllowBlank="false" Width="400" />
                <ext:TextField ID="txtUporabnik" runat="server" FieldLabel="Uporabnik" AllowBlank="false" Width="150" />
                <ext:TextField ID="txtGeslo" runat="server" FieldLabel="Geslo" AllowBlank="false" Width="150" InputType="Password"/>
                <ext:Hidden ID="lblGesloHidden" runat="server" Text="NA"/>
            </Items>            
            </ext:Panel>
            </Items>
            <Listeners>
				  <ClientValidation Handler="#{LdapStreznikPodrobnoProxy}.disableButton('Save', !valid);" />
			</Listeners>
            </sio:FormPanel>   
        </Content>
    </ext:Viewport>
    
    <sio:DialogProxy runat="server" ID="LdapStreznikPodrobnoProxy" WindowId="DialogStreznikPodrobno">
	<DirectEvents>		
		<ButtonClicked OnEvent="ButtonClicked">
		<ExtraParams>
			<ext:Parameter Name="button" Value="item.id" Mode="Raw" />
		</ExtraParams>
		</ButtonClicked>		
	</DirectEvents>
	</sio:DialogProxy>
	
    </form>
</body>
</html>
